# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-miniflux
pkgver=1.0.0
pkgrel=0
pkgdesc="Python client for Miniflux API"
url="https://miniflux.app/"
license="MIT"
arch="noarch"
depends="py3-requests"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://github.com/miniflux/python-client/archive/$pkgver/py3-miniflux-$pkgver.tar.gz"
builddir="$srcdir/python-client-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/miniflux-$pkgver-py3-none-any.whl
}

sha512sums="
cb48749559706264ee422f8a6887766b952ef3d08965be3bc88043652fa27a2d27f8ccbd43e69edcfcd53b7ec981bc72115b8a1b9cde631ae310d1ab7fd6aed8  py3-miniflux-1.0.0.tar.gz
"
